package com.qdlc.p2p.biz.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qdlc.p2p.biz.service.UserSignService;
import com.qdlc.p2p.dal.dao.UserSignDao;
import com.qdlc.p2p.dal.dto.UserSign;

/**
 * Created by liaoxiangkai on 2015/11/10.
 */
@Service("userSignService")
public class UserSignServiceImpl implements UserSignService {

    @Resource
    private UserSignDao userSignDao;

    /**
     * 保存用户签到信息
     *
     * @param userSign
     * @return
     */
    public UserSign save(UserSign userSign) {
        return userSignDao.save(userSign);
    }

    @Override
    public UserSign findLastRecord(long userId) {
        return userSignDao.findLastRecord(userId);
    }

}
